package com.yxy.model;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;
import java.util.Set;

import javax.persistence.*;


@Data
@Entity
@Table(name = "sys_logs",schema = "")
public class SysLogs {

  //登录用户名
  @Column(name = "user_name")
  private String userName;

  //请求id
  @Column(name = "hash_code")
  private String hashCode;

  //null
  @Column(name = "interface_name")
  private String interfaceName;

  //参数
  @Column(name = "params")
  private String params;

  //null
  @Column(name = "create_user_id")
  private Long createUserId;

  //null
  @Column(name = "create_user_name")
  private String createUserName;

  //null
  @Column(name = "create_date")
  private Date createDate;

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //null
  @Column(name = "tenant_id")
  private Long tenantId;


  @Transient
  private Set<Long> tenantIdList;

  //第几页，从1开始
  @Transient
  private int pageNumber;

  //每页的条数
  @Transient
  private int pageSize;


}
